package wineshop.dao;

import java.util.List;

import wineshop.domain.Room;
import wineshop.service.RoomQueryHelper;

public interface RoomDao {

	// 新增房间
	void AddRoom(Room room);

	// 获取所有房间信息
	List<Room> GetAllRoom();

	// 根据房号查询房间信息
	Room GetRoomById(int roomId);

	// 删除房间
	void delRoom(Integer roomId);

	// 更新房间信息
	void UpdateRoom(Room room);
	
	
	//组合查询房间信息
	 List<Room> getRoomsByCondition(RoomQueryHelper helper);
	 
	 Long countRoomsByCondition(RoomQueryHelper helper);
	
	 List<Room> getScopedRooms(RoomQueryHelper helper, int startIndex,
				int fetchSize);

}
